namespace NServiceBus.Routing;

using System;

/// <summary>
/// Represents a route directly to the specified destination.
/// </summary>
public class UnicastAddressTag : AddressTag
{
    /// <summary>
    /// Initializes the strategy.
    /// </summary>
    /// <param name="destination">The destination.</param>
    public UnicastAddressTag(string destination)
    {
        ArgumentException.ThrowIfNullOrWhiteSpace(destination);
        Destination = destination;
    }

    /// <summary>
    /// The destination.
    /// </summary>
    public string Destination { get; }
}